package com.lxyk.yygh.hosp.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName HospConfig
 * @Description TODO
 * @Author FJQ
 * @Date 2023/5/9 21:54
 * @Version 1.0
 **/
//配置类
@Configuration
@MapperScan("com.lxyk.yygh.hosp.mapper")
public class HospConfig {

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
